//
//  CreateScreen.h
//  Playlist
//
//  Created by bfduran on 12/1/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>


@interface CreateScreen : UIViewController <MPMediaPickerControllerDelegate, UITextFieldDelegate, UITableViewDelegate, UITableViewDataSource> {
    BOOL isEditScreen;
    NSString * playListName;
    UIBarButtonItem * addSong;
    UIBarButtonItem * deleteSong;
    UITextField * title;
    UIBarButtonItem * savePlaylist;
    MPMediaItemCollection * selectedSongs;
    
    UITableView *tableView;
    NSArray *theList;
    MPMediaItem *currentSong;
}

-(IBAction) addSongButtonPressed;
-(IBAction) deleteSongButtonPressed;
-(IBAction) saveButtonPressed;

@property (nonatomic, retain) NSString * playListName;
@property BOOL isEditScreen;
@property (nonatomic, retain) IBOutlet UIBarButtonItem * addSong;
@property (nonatomic, retain) IBOutlet UIBarButtonItem * deleteSong;
@property (nonatomic, retain) IBOutlet UITextField * title;
@property (nonatomic, retain) IBOutlet UIBarButtonItem * savePlaylist;
@property (nonatomic, retain) MPMediaItemCollection * selectedSongs;
@property (nonatomic, retain) IBOutlet UITableView *tableView;

@end
